'use strict';

module.exports = app => {
    const {
        DATE,
        STRING,
        INTEGER
    } = app.Sequelize;
    const prize_manage = app.model.define('prize_manage',{
        id:{
            type:INTEGER,
            primaryKey:true,
            autoIncrement:true,
            allowNull:false,
            comment:"获奖管理ID"
        },
        project:{
            type:STRING,
            defaultValue:null,
            comment:"项目"
        },
        class_name:{
            type:STRING,
            defaultValue:null,
            comment:"班级"
        },
        name:{
            type:STRING,
            defaultValue:null,
            comment:"名字"
        },
        year:{
            type:STRING,
            defaultValue:null,
            comment:"年度"
        },
        prize_subject:{
            type:STRING,
            defaultValue:null,
            comment:"获奖主体"
        },
        prize_news:{
            type:STRING,
            defaultValue:null,
            comment:"获奖信息"
        },
        prize_unit:{
            type:STRING,
            defaultValue:null,
            comment:"授奖单位"
        },
        prize_date:{
            type:DATE,
            defaultValue:null,
            comment:"获奖时间"
        },
        state:{
            type:STRING,
            defaultValue:null,
            comment:"状态"
        }
    })
    prize_manage.associate = function () {
        
    }
}